package com.xxxy.jsq.model;

import com.alibaba.fastjson2.annotation.JSONField;

import java.io.Serializable;
import java.sql.Timestamp;

public class Course implements Serializable {
    private Long courseId;
    private String courseName;
    private String courseNum;
    private Double courseScore;
    private Integer courseTimes;
    private Integer courseLtimes;
    private Integer courseStimes;
    private String courseFlag;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Timestamp courseStmp;

    public Course() {
    }

    public Course(Long courseId, String courseName, String courseNum, Double courseScore,
                  Integer courseTimes, Integer courseLtimes, Integer courseStimes,
                  String courseFlag, Timestamp courseStmp) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.courseNum = courseNum;
        this.courseScore = courseScore;
        this.courseTimes = courseTimes;
        this.courseLtimes = courseLtimes;
        this.courseStimes = courseStimes;
        this.courseFlag = courseFlag;
        this.courseStmp = courseStmp;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseNum() {
        return courseNum;
    }

    public void setCourseNum(String courseNum) {
        this.courseNum = courseNum;
    }

    public Double getCourseScore() {
        return courseScore;
    }

    public void setCourseScore(Double courseScore) {
        this.courseScore = courseScore;
    }

    public Integer getCourseTimes() {
        return courseTimes;
    }

    public void setCourseTimes(Integer courseTimes) {
        this.courseTimes = courseTimes;
    }

    public Integer getCourseLtimes() {
        return courseLtimes;
    }

    public void setCourseLtimes(Integer courseLtimes) {
        this.courseLtimes = courseLtimes;
    }

    public Integer getCourseStimes() {
        return courseStimes;
    }

    public void setCourseStimes(Integer courseStimes) {
        this.courseStimes = courseStimes;
    }

    public String getCourseFlag() {
        return courseFlag;
    }

    public void setCourseFlag(String courseFlag) {
        this.courseFlag = courseFlag;
    }

    public Timestamp getCourseStmp() {
        return courseStmp;
    }

    public void setCourseStmp(Timestamp courseStmp) {
        this.courseStmp = courseStmp;
    }

    @Override
    public String toString() {
        return "Course{" +
                "courseId=" + courseId +
                ", courseName='" + courseName + '\'' +
                ", courseNum='" + courseNum + '\'' +
                ", courseScore=" + courseScore +
                ", courseTimes=" + courseTimes +
                ", courseLtimes=" + courseLtimes +
                ", courseStimes=" + courseStimes +
                ", courseFlag='" + courseFlag + '\'' +
                ", courseStmp=" + courseStmp +
                '}';
    }
}
